package org.example.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.example.javabean.SysLog;

import java.util.List;

public interface SysLogMapper {
    List<SysLog> selectByUsernameAndUrl(@Param("username") String username, @Param("url") String url);
    @Insert("insert into syslog (visitTime,username,ip,url,executionTime,classname,methodName,args) values(#{visitTime},#{username},#{ip},#{url},#{executionTime},#{className},#{methodName},#{args})")
    public int insert(SysLog sysLog);
}
